package com.yonghong.groupreport.service.impl;

import com.yonghong.groupreport.domain.ReportResult;
import com.yonghong.groupreport.domain.ReportsParams;
import com.yonghong.groupreport.mapper.ReportsResultMapper;
import com.yonghong.groupreport.service.ReportsResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportsResultServiceImpl implements ReportsResultService {
    @Autowired
    private ReportsResultMapper reportsResultMapper;


    @Override
    public List<ReportResult> selectBalanceSheet(ReportsParams reportsParams) {
        return reportsResultMapper.selectBalanceSheet(reportsParams);
    }

    @Override
    public List<ReportResult> selectIncome(ReportsParams reportsParams) {
        return reportsResultMapper.selectIncome(reportsParams);
    }

    @Override
    public List<ReportResult> selectIncomeQuarter(ReportsParams reportsParams) {
        return reportsResultMapper.selectIncomeQuarter(reportsParams);
    }

    @Override
    public ReportResult selectReportDataFlag(ReportsParams reportsParams) {
        return reportsResultMapper.selectReportDataFlag(reportsParams);
    }

    @Override
    public List<ReportResult> selectReportData(ReportsParams reportsParams) {
        return reportsResultMapper.selectReportData(reportsParams);
    }
}
